<template>
    <div class="panelIndexBig" :class="[position]">

    </div>
</template>

<script lang='ts' setup>

defineProps({
    itemInfo: {
        type: Object,
        default: () => { }
    },
    position: {
        type: String,
        default: () => 'top'
    }
})
</script>

<style lang="scss" scoped>
.panelIndexBig {
    position: relative;
    width: 166px;
    height: 116px;
    border-radius: 9px;
    text-align: center;
    background-size: cover;
    background-image: url('/src/assets/gufeng/big.png');

    span {
        color: #fff;
        font-size: 20px;
        line-height: 40px;
    }
}

.panelIndexBig::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.top {
    margin-top: 30px;
}

.top::after {
    top: -20px;
    border-bottom: 10px solid #ffa71b;
    transform: translateX(-260%);
}

.bottom {
    margin-bottom: 30px;
}

.bottom::after {
    bottom: -20px;
    border-top: 10px solid #ffa71b;
    transform: translateX(-50%);
}
</style>